package com.system.config;

import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * 启动完成后执行 order 越小越优先执行 可实现ApplicationRunner 或者 CommandLineRunner 接口 参数不一样
 * 
 * @author kaifa004
 *
 */
@Component
@Order(1)
public class LoadPropertiesInit implements ApplicationRunner {

	@Override
	public void run(ApplicationArguments args) throws Exception {
		
		init();
		System.out.println("\n======启动完成=======");
	}

	public void init() {
		
	}

}
